package com.smartcommunity.service.fullSearch;

import com.smartcommunity.bean.model.Pager;
import com.smartcommunity.entity.fullSearch.SearchHistory;

/**
 * @ClassName: SearchHistoryService
 * @Description: 全息档案搜索历史业务层接口
 * @author: yangyi
 * @Date: 2020/6/30 17:45
 * @Company:
 */
public interface SearchHistoryService {
	
	/**
	 * 新增搜索历史
	 */
	void saveSearchHistory(SearchHistory searchHistory);
	
	/**
	 * 由用户ID分页查找搜索历史
	 */
	Pager<SearchHistory> listUserHistory(Integer pageNumber, Integer pageSize, Integer userId);
	
	/**
	 * 由用户ID删除搜索历史
	 */
	void delUserHistory(Integer userId);
	
	/**
	 * 由ID删除搜索历史
	 */
	void delHistoryById(Long id);
}
